package com.woniu.command.handler;

import com.woniu.adapter.SystemLogAdapter;
import com.woniu.outlet.po.SystemLogPo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class SystemLogCommandHandler {

    @Autowired
    private SystemLogAdapter systemLogAdapter;



    public Integer addSystemLog(SystemLogPo systemLogPo){
        systemLogAdapter.addSystemLogPo(systemLogPo);
        return 1;
    }

    public Integer updateSystemLog(SystemLogPo systemLogPo){
        systemLogAdapter.updateSystemLogPo(systemLogPo);
        return 1;
    }

    public Integer deleteSystemLogById(Long id){
        systemLogAdapter.deleteSystemLogPoById(id);
        return 1;
    }



}
